package com.jyu.sati.business.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jyu.sati.entity.Person;
import com.jyu.sati.vo.UserInfoPageVo;
import com.jyu.sati.vo.UserInfoVo;

public interface PersonDao {
	int deleteByPrimaryKey(Integer personId);

	int insert(Person record);

	int insertSelective(Person record);

	Person selectByPrimaryKey(Integer personId);

	int updateByPrimaryKeySelective(Person record);

	int updateByPrimaryKey(Person record);

	Person getPersonByUserId(@Param("userId") String userId);

	/**
	 * 
	 * 绑定个人用户的附件
	 * 
	 * @param userId
	 * @param enclosureId
	 * @return
	 */
	int bindEnclosureForPerson(@Param("userId") String userId, @Param("enclosureId") Integer enclosureId);

	

	/**
	 * 获取一页个人用户数据
	 * 
	 * @param condition
	 * @return
	 */
	List<UserInfoVo> getPersonUserInfoPageByCondition(UserInfoPageVo condition);

	/**
	 * 根据查询条件获取总数 (个人用户)
	 * 
	 * @param condition
	 * @return
	 */
	Integer getPersonTotalNoByCondition(UserInfoPageVo condition);
}